Fix a warning caused by difference between prototype and definition
authorQiu Wenbo <qiuwenbo@kylinos.com.cn>
Tue, 17 Nov 2020 06:47:28 +0000 (14:47 +0800)
committerQiu Wenbo <qiuwenbo@kylinos.com.cn>
Tue, 17 Nov 2020 06:59:14 +0000 (14:59 +0800)
This commit fix the warning:

../gdk/wayland/gdkdisplay-wayland.c:1079: Warning: GdkWayland: gdk_wayland_display_set_cursor_theme: unknown parameter 'name' in documentation comment, should be 'theme'

gdk/wayland/gdkwaylanddisplay.h

index 0e3249dfb5ef1bbac44e247d3ec22e012d78c60c..239bf26ce5c72848487284422966cb2aa8be6d0f 100644 (file)
@@ -51,7 +51,7 @@ GDK_AVAILABLE_IN_ALL
 struct wl_compositor   *gdk_wayland_display_get_wl_compositor   (GdkDisplay *display);
 GDK_AVAILABLE_IN_ALL
 void                    gdk_wayland_display_set_cursor_theme    (GdkDisplay  *display,
-                                                                 const char *theme,
+                                                                 const char *name,
                                                                  int          size);
 GDK_AVAILABLE_IN_ALL
 const char *           gdk_wayland_display_get_startup_notification_id (GdkDisplay *display);